require 'rubygems'
require 'mechanize'
require 'hpricot'

class Scraper  
  def self.scrape(username, password)
    scraper = self.new
    scraper.do_scrape(username, password)
  end
  
  def initialize
    WWW::Mechanize.html_parser = Hpricot    
  end
  
  def dump_page(page, file_name)
    File.open file_name, 'w' do |f|
      f.puts page.body
    end
  end
end




  